package com.itheima.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.itheima.pojo.pageQuery;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

@Data
public class CommentsPo extends pageQuery implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "项目ID")
    private Integer projectId;

    @ApiModelProperty(value = "评论方Id")
    private Integer userId;

    @ApiModelProperty(value = "被评论方Id")
    private Integer buserId;

    @ApiModelProperty(value = "被评论方姓名")
    @TableField("buserName")
    private String busername;
    @ApiModelProperty(value = "评论方姓名")
    @TableField("buserName")
    private String username;

    @ApiModelProperty(value = "评论内容")
    private String content;

    @ApiModelProperty(value = "评论时间")
    private String createTime;

    @ApiModelProperty(value = "点赞数")
    private Integer support;

    @ApiModelProperty(value = "评论方头像")
    private String userImg;
    @ApiModelProperty(value = "被评论方头像")
    private String buserImg;
    @ApiModelProperty(value = "点赞状态")
    private Integer isLiked;
    @ApiModelProperty(value = "回复或收起")
    private Integer isReply=0;
    @ApiModelProperty(value = "父评论ID")
    private Integer parentId;
    @ApiModelProperty(value = "回复列表")
    private List<CommentsPo> children;

    @ApiModelProperty(value = "项目ID集合")
    private List<Integer> projectIds;

}
